<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper title="${title} ${courseName}">
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()" >&laquo; <spring:message code="content.general.back" /></a>
		</div>
		<form method="post" id="edit-post" action="<c:url value="/course/${courseId}/forum/${topic.id}/${editedPost.id}/edit_post"/>">
			<label><spring:message code="forum.post.postText"/></label>
			<textarea name="PostText" style="height: 500px;"><c:out value="${editedPost.text}"/></textarea>
				
			
			
			<label style="height: 500px;"></label>
			<button type="submit">
				<spring:message code="forum.button.submit"/>
			</button>
			 
		</form>
		<table>
			<c:forEach items="${posts}" var="post">
				<tr><td><c:out value="${post.owner.firstName}"/> <c:out value="${post.owner.lastName}"/></td><td><c:out value="${post.text}"/></td></tr>
			</c:forEach>
		</table>
	</jsp:body>
</t:wrapper>